package com.yeyks.other.dal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yun
 * @since 2020-02-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="InvoiceInfo对象", description="")
public class InvoiceInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "开票主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "抬头类型， 0，个人单位， 1 企业单位")
    @TableField("head_type")
    private Integer headType;

    @ApiModelProperty(value = "发票抬头")
    @TableField("invoice_head")
    private String invoiceHead;

    @ApiModelProperty(value = "税号")
    @TableField("tax_id")
    private String taxId;

    @ApiModelProperty(value = "金额（分）")
    @TableField("price")
    private Integer price;

    @ApiModelProperty(value = "邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty(value = "开票状态   -1：开票失败， 0 ：申请中， 1：已开票")
    @TableField("invoice_status")
    private Integer invoiceStatus;

    @ApiModelProperty(value = "开票用户ID")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "开票人姓名")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty(value = "开票类型  1： 订单开票（c2b）， 2：充值开票（优享VIP）")
    @TableField("invoice_type")
    private Integer invoiceType;


    public static final String ID = "id";

    public static final String CREATE_TIME = "create_time";

    public static final String HEAD_TYPE = "head_type";

    public static final String INVOICE_HEAD = "invoice_head";

    public static final String TAX_ID = "tax_id";

    public static final String PRICE = "price";

    public static final String EMAIL = "email";

    public static final String INVOICE_STATUS = "invoice_status";

    public static final String USER_ID = "user_id";

    public static final String USER_NAME = "user_name";

    public static final String INVOICE_TYPE = "invoice_type";

}
